package com.huang.wangpan.dao;

import com.huang.wangpan.vo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserDao {
    void insert(User user);

    User searchByToken(@Param("token") String token);

    Integer insertByRegister(User user);

    User selectByName(@Param("name") String name);

    User selectByNameAndPwd(String name, String password);

    void update(@Param("name") String name);

    String selectNameByToken(@Param("token") String token);
}

